package com.dfbz.bigdata.modules.system.doman;



import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName tb_designer_service
 */
@TableName(value ="tb_designer_service")
@Data
public class DesignerService implements Serializable {
    /**
     * 设计服务id
     */
    @TableId
    private Long serviceId;

    /**
     * 设计稿
     */
    private String serviceDesigndraft;

    /**
     * 概念图
     */
    private String servicePlan;

    /**
     * 说明书
     */
    private String serviceInstructions;

    /**
     * 效果图
     */
    private String serviceRenderings;

    /**
     * 设计材料
     */
    private String serviceStuff;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否删除
     */
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DesignerService other = (DesignerService) that;
        return (this.getServiceId() == null ? other.getServiceId() == null : this.getServiceId().equals(other.getServiceId()))
            && (this.getServiceDesigndraft() == null ? other.getServiceDesigndraft() == null : this.getServiceDesigndraft().equals(other.getServiceDesigndraft()))
            && (this.getServicePlan() == null ? other.getServicePlan() == null : this.getServicePlan().equals(other.getServicePlan()))
            && (this.getServiceInstructions() == null ? other.getServiceInstructions() == null : this.getServiceInstructions().equals(other.getServiceInstructions()))
            && (this.getServiceRenderings() == null ? other.getServiceRenderings() == null : this.getServiceRenderings().equals(other.getServiceRenderings()))
            && (this.getServiceStuff() == null ? other.getServiceStuff() == null : this.getServiceStuff().equals(other.getServiceStuff()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getServiceId() == null) ? 0 : getServiceId().hashCode());
        result = prime * result + ((getServiceDesigndraft() == null) ? 0 : getServiceDesigndraft().hashCode());
        result = prime * result + ((getServicePlan() == null) ? 0 : getServicePlan().hashCode());
        result = prime * result + ((getServiceInstructions() == null) ? 0 : getServiceInstructions().hashCode());
        result = prime * result + ((getServiceRenderings() == null) ? 0 : getServiceRenderings().hashCode());
        result = prime * result + ((getServiceStuff() == null) ? 0 : getServiceStuff().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serviceId=").append(serviceId);
        sb.append(", serviceDesigndraft=").append(serviceDesigndraft);
        sb.append(", servicePlan=").append(servicePlan);
        sb.append(", serviceInstructions=").append(serviceInstructions);
        sb.append(", serviceRenderings=").append(serviceRenderings);
        sb.append(", serviceStuff=").append(serviceStuff);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}